package net.expectx.pay.rpc.api;

import net.expectx.common.single.base.BaseResult;
import net.expectx.common.single.base.BaseService;
import net.expectx.pay.dao.bean.ProductOrderHeader;
import net.expectx.pay.dao.bean.ProductOrderHeaderExample;
import org.apache.ibatis.annotations.Param;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * ProductOrderHeaderService接口
 * @author lijian
 * @date 2019/7/4
 */
public interface ProductOrderHeaderService extends BaseService<ProductOrderHeader, ProductOrderHeaderExample> {
    BaseResult createOrder(Map<String,String>params );
    BaseResult createOrder(ProductOrderHeader productOrderHeader);

    /**
     * 根据条件分页
     * @param pageIndex  1
     * @param pageSize
     * @param tradeNo
     * @param orderId
     * @param endTime2
     * @param endTime1
     * @param startTime2
     * @param startTime1
     * @param grandTotal
     * @param merchantOrderId
     * @param payStatus
     * @param orderType
     * @param merchantApplication
     * @param paymentChannel
     * @param strOrder
     * @return
     * @throws ParseException
     */
    Map<String, Object> findPageByStrWhere(Integer pageIndex, Integer pageSize,String merchantNo, String tradeNo, String orderId, String endTime2, String endTime1, String startTime2, String startTime1, String grandTotal, String merchantOrderId, String payStatus, String orderType, String merchantApplication,
                                           String paymentChannel,String todayOrder, String strOrder) throws ParseException;
    int count(String strWhere);


    /**
     * 查询本周的成交量以及天数
     * @return
     */
    List<ProductOrderHeader> selectByWeek();
}
